import http from '@/utils/request'

//场馆时间段信息
export async function getTimesApi(){
  return await http.get("/times")
}

//添加场馆开放时间段
export async function addTimesApi(parm){
  return await http.post("/times",parm)
}

//修改场馆开放时间段
export async function editTimesApi(parm){
  return await http.put("/times",parm)
}

//场馆开放时间段排序
export async function sortTimesApi(parm){
  return await http.put("/times/sort",parm)
}

//删除场馆开放时间段
export async function deleteTimesApi(parm){
  return await http.delete("/times",parm)
}
